import React, { Component } from 'react'
import Search from './components/search'
import List from './components/list'
import './app.css'
export default class App extends Component {
  state = {
    users: [],
    placeholder: "请输入关键字搜索",
    isLoading: false
  }
  changeState = (type, res) => {
    this.setState({
      [type]: res
    })
  }
  render() {
    return (
      <div>
        <Search changeState={this.changeState} />
        <List {...this.state} />
      </div>
    )
  }
}
